import request from '@/utils/request'
import qs from 'qs'

// 添加预警
export const addWarning = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsHotSearch/addWarning',
        method: 'post',
        data: params
    });
}

// 热点追踪,过去24小时整体热度，过去7天单日热度均值
export const statisticsHotSearchTotal = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsHotSearch/statisticsHotSearchTotal',
        method: 'get',
    });
}

// 近期热搜热度走势 近期热点事件趋势
export const statisticsHotSearchTrand = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsHotSearch/statisticsHotSearchTrand',
        method: 'get',
    });
}

// 近期热搜热度排名TOP10
export const statisticsMedia = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsHotSearch/statisticsMedia',
        method: 'get',
        params: params
    });
}
// 近期7天最高热点事件详情
export const statisticsMostHot = (params) => {
    return new request({
        url: './public_sentiment_three/statisticsHotSearch/statisticsMostHot',
        method: 'get',
    });
}

//列表数据
export const getHotTrackWarningAddList = (params) => {
    return new request({
        url: './public_sentiment_three/hotTrackWarning/getHotTrackWarningAddList',
        method: 'post',
        data: params
    });
}

export const deleteHotTrackWarningAdd = (params) => {
    return new request({
        url: './public_sentiment_three/hotTrackWarning/delete',
        method: 'post',
        params: params
    });
}

//列表数据
export const getHotTrackHotSearchList = (params) => {
    return new request({
        url: './public_sentiment_three/hotTrackWarning/getHotTrackHotSearchList',
        method: 'post',
        data: params
    });
}

//删除详情列表数据
export const deletedetaildata = (params) => {
    return new request({
        url: './public_sentiment_three/hotTrackWarning/deleteDetail',
        method: 'post',
        params: params
    });
}


export const hotTrand = (params) => {
    return new request({
        url: './public_sentiment_three/hotTrackWarning/hotTrand',
        method: 'post',
        params: params
    });
}

// 修改情感倾向
export const updateEmotionalPolarity = (params) => {
    return new request({
        url: './public_sentiment_three/hotTrackWarning/updateEmotionalPolarity',
        method: 'post',
        params: params
    });
}

// 查看相似列表
export const getSimilarList = (params) => {
    return new request({
        url: './public_sentiment_three/hotSearch/getSimilarList',
        method: 'post',
        params: params
    });
}
